package tds.model28;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Note
 * @Description 普通音符解释器
 * @author tds
 * @Date 2020/2/8 18:27
 * @version 1.0.0
 */
public class Note extends Expression {

    @Override
    public void execute(String key, double value) {
        String note = "";
        switch (key){
            case "C":
                note = "1";
                break;
            case "D":
                note = "2";
                break;
            case "E":
                note = "3";
                break;
            case "F":
                note = "4";
            case "G":
                note = "5";
                break;
            case "A":
                note = "6";
                break;
            case "B":
                note = "7";
                break;
        }
        System.out.printf(note + " ");
    }
}
